<%@ page contentType="text/html; charset=UTF-8"
	import="com.pub.database.QueryBean,java.util.*"%>
<jsp:useBean id="webFunction" scope="request"
	class="com.pub.web.WebFunction" />
<%
  webFunction.setPortal_to_session(request); //set session from portal
  QueryBean lqbnDAO=null;
  String lstrResult = null;

  try{
    if(session.getAttribute("u_id")==null){
    }
    else{
      ResourceBundle lrbdWEB_Config = ResourceBundle.getBundle("WEB_Config",Locale.getDefault());
      lqbnDAO=new QueryBean(lrbdWEB_Config.getString("DB_ALIAS"),
      Boolean.valueOf(lrbdWEB_Config.getString("DEBUG")).booleanValue(),
      lrbdWEB_Config.getString("SOURCE_CHARSET"),
      lrbdWEB_Config.getString("TARGET_CHARSET"));

      out.println((new swd.base.SwdBase(null,lqbnDAO)).getDefaultSysNO(session.getAttribute("u_id").toString()));
    }
  }
  catch(Exception e){
    e.printStackTrace();

  }
  finally{
    if(lqbnDAO!=null){
      try{lqbnDAO.close();}catch(Exception e){System.out.println("cant close querybean in get_sys_no.jsp(SWD)");}
      lqbnDAO=null;
    }
  }
%>
